<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--view层 模版-->
<div id="app">
    <h1 v-for="(item,index) in items">
      {{item.message}}--{{index}}
    </h1>
</div>
<!--导入vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.min.js"></script>
<script>
  var vm=new Vue({
    el: "#app",
    <!--model:数据-->
    data: {
      items: [
        {message: "山里偷水果"},
        {message: "爸妈去上班"},
        {message: "我去幼儿园"},
        {message: "幼儿园放假"},
      ]
    }
  });

</script>
</body>
</html>